package com.hluck.materialstudy.ui.adapter

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

object ImageBindAdapter {

    @JvmStatic
    @BindingAdapter("imageId")
    fun imageId(imageView: ImageView,imgId:Int){
        Glide.with(imageView.context)
            .load(imgId)
            .into(imageView)
    }
}